package com.atguigu.day13.teacher.in3;

public interface Num {
    void showNum();
}
class M {
    public static void main(String[] args) {
        //Num n = new N();
        Num n = getNum();
        n.showNum();
    }
    public static Num getNum(){
        int num = 66;
        class N implements Num{
            @Override
            public void showNum() {
                System.out.println("num = " + num);
            }
        }
        N n = new N();
        return n;
    }
}

